<%@page contentType="text/html; charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<style>
.page .searchBar label{width:80px;}
</style>
<!-- 此处加action="employeeCtrl.ctrl"是为了条件查询时仍能显示排序图标 -->
<form id="pagerForm" method="post" action="activityList">
	<input type="hidden" name="pageNum" value="${pageNum}" />
	<input type="hidden" name="numPerPage" value="${numPerPage}" />
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" method="post" action="activityList">
		<div class="searchBar">
			<input type="hidden" name="numPerPage" value="${numPerPage}" />
			<input type="hidden" name="pageNum" value="${pageNum}" /> 
			<table class="searchContent">
				<tr>
					<td>
						<label>活动名称:</label>
						<input type="text" name="activityName"  value="${activityName }" />
					</td>
					<td>
						<label>结算客户名称:</label>
						<input type="text" name="customerName"  value="${customerName }" />
					</td>
					<td>
						<div class="subBar">
							<ul>
								<li>
									<div class="buttonActive">
										<div class="buttonContent">
											<button type="submit">
												检索
											</button>
										</div>
									</div>
								</li>
							</ul>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			 
		</ul>
	</div>
	<table class="table" width="100%" layoutH="115">
		<thead>
			<tr>
				<th width="20"">
					序号
				</th>
				<th width="35">
					活动ID
				</th>
				<th width="60">
					活动名称
				</th>
				<th width="60">
					结算客户
				</th>
				<th width="40">开始时间</th>
				<th width="40">结算时间</th>
				<th width="35">补助金额</th>
				<th width="35">分成比例</th>
				<th width="140">备注</th>
				<th width="40">查找带回</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="m" items="${modelList}" varStatus="status">
				<tr target="sid_activityId" rel="${m.modelId}">
					<td>
						${status.count} 
					</td>
					<td>1000</td>
					<td>测试</td>
					<td>正常</td>
					<td>测试,,</td>
					<td>测试,,</td>
					<td>测试,,</td>
					<td>测试,,</td>
					<td>测试,,</td>
					<td>2013-10:20 12:30</td>
				</tr>
			</c:forEach>
			<tr target="sid_activityId" rel="1">
					<td>1</td>
					<td>1001</td>
					<td>0元购机</td>
					<td>江西电信</td>
					<td>2013-12-23</td>
					<td>2014-02-23</td>
					<td align="right">5.0</td>
					<td>47.0%</td>
					<td>防静电萨克防静电萨克关键时刻非经萨克非经萨克</td>
					<td>
						<a class="btnSelect" href="javascript:$.bringBack({activityId:'1', activityName:'与江西电信的0元购机活动'})" title="查找带回">选择</a>
					</td>
				</tr>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<!-- pageNum:1是当更改numPerPage时，使pageNum=1重新开始，否则可能无数据 -->
			<select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value, pageNum:1})">
				<option value="15" ${numPerPage==15?'selected':''}>
					15
				</option>
				<option value="20" ${numPerPage==20?'selected':''}>
					20
				</option>
				<option value="25" ${numPerPage==25?'selected':''}>
					25
				</option>
				<option value="50" ${numPerPage==50?'selected':''}>
					50
				</option>
				<option value="100" ${numPerPage==100?'selected':''}>
					100
				</option>
			</select>
			<span>条，共100条 </span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="100" numPerPage="${numPerPage}" pageNumShown="5" currentPage="1"></div>
	</div>
</div>
